<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/admin.css'); ?>">
<script type='text/javascript' src="<?php echo $this->_webroot('skin/js/jy.js'); ?>"></script>
<style>
</style>
</head>
<body onload="showlink('<?php echo $ltype;?>')">
<input type="hidden" id="hid" value="menuid" />
<div id="jybody" style="margin-top:0px;">
    <div id="leftmenu">
		<?php if ($id == 'index' or $id == ''){?>
	        <ul class="submenu" id="index">
	        	<li id="separator" class="separator"></li>
	        		<li id="main" class="active" onclick="changeMenu(this);"><a href="<?php echo $this->_url('admin/default/main');?>" target="main-frame">管理首页</a></li>
	        		<li id="site_set_browse" class="" onclick="changeMenu(this);"><a href="<?php echo $this->_url('admin/area/index');?>" target="main-frame">地区管理</a></li>
                    <li onclick="changeMenu(this);" class="" id="pay_browse"><a href="<?php echo $this->_url('admin/payment/index');?>" target="main-frame" >支付接口设置</a></li>
					
                    <li onclick="changeMenu(this);" class="" id="database"><a  href="<?php echo $this->_url('admin/database/save');?>" target="main-frame">数据库备份</a></li>					
                    <li onclick="changeMenu(this);" class="" id="database_recover"><a href="<?php echo $this->_url('admin/database/recover');?>" target="main-frame">数据库恢复</a></li>					
	        </ul>
		<?php }?>
		<?php if ($id == 'shops'){?><!-- 商铺 -->
			<ul class="submenu" id="index">
	        	<li id="separator" class="separator"></li>
				<li id="shop_browse" class="active" onclick="changeMenu(this);"><a href="<?php echo $this->_url('admin/shop/index');?>" target="main-frame">商铺列表</a></li>
                <li onclick="changeMenu(this);" class="" id="audit_company"><a target="main-frame" href="<?php echo $this->_url('admin/shop/request');?>">未审核商铺</a></li>				
				<li onclick="changeMenu(this);" class="" id="shop_categories"><a target="main-frame" href="<?php echo $this->_url('admin/shop/categorieslist');?>">商铺分类</a></li>
                <li onclick="changeMenu(this);" class="" id="credit_browse"><a target="main-frame" href="<?php echo $this->_url('admin/integral/index');?>">商铺信用等级</a></li>			
                <li onclick="changeMenu(this);" class="" id="ensure_browse"><a target="main-frame" href="<?php echo $this->_url('admin/ensure/index');?>">服务保障</a></li>						
			</ul>
	   <?php }?>
	    <?php if ($id == 'application'){?><!-- 应用 -->
			<ul class="submenu" id="index">
	        	<li id="separator" class="separator"></li>
					<li id="template_mana" class="active" onclick="changeMenu(this);"><a href="m.php?app=manage_template" target="main-frame">模板列表</a></li>

	        </ul>
		<?php }?>
		<?php if ($id == 'member'){?><!-- 会员 -->
			<ul class="submenu" id="index">
	        	<li id="separator" class="separator"></li>
				<li id="user_browse" class="active" onclick="changeMenu(this);"><a href="<?php echo $this->_url('admin/user/index/?');?>" target="main-frame">会员列表</a></li>
                <li onclick="changeMenu(this);" class="active" id="user_rank_browse"><a target="main-frame" href="<?php echo $this->_url('admin/userrank/index');?>">会员级别设置</a></li>
				
			</ul>
		<?php }?>
	   <?php if ($id == 'order'){?><!-- 订单 -->
			<ul class="submenu" id="index">
	        	<li id="separator" class="separator"></li>
				<li id="order_list_browse" class="active" onclick="changeMenu(this);"><a href="<?php echo $this->_url('admin/order/index/?');?>" target="main-frame">所以订单列表</a></li>
                <li onclick="changeMenu(this);" class="" id="pay_order_list_browse"><a href="<?php echo $this->_url('admin/order/index/?pay_status=1');?>" target="main-frame">已付款订单列表</a></li>
				
                <li onclick="changeMenu(this);" class="" id="complaint_list"><a target="main-frame" href="<?php echo $this->_url('admin/complaint/index/');?>">投诉列表</a></li>				
                <li onclick="changeMenu(this);" class="" id="complaint_title"><a target="main-frame" href="<?php echo $this->_url('admin/complaint/typelist/');?>">投诉标题管理</a></li>				
                <li onclick="changeMenu(this);" class="" id="protect_rights"><a target="main-frame" href="<?php echo $this->_url('admin/protect/index/');?>">维权管理</a></li>				
				
			</ul>
	   <?php }?>
	   <?php if ($id == 'commodity'){?><!-- 商品 -->
			<ul class="submenu" id="index">
	        	<li id="separator" class="separator"></li>
				<li id="goods_list_browse" class="active" onclick="changeMenu(this);"><a href="<?php echo $this->_url('admin/goods/index/');?>" target="main-frame">商品列表</a></li>
				<li onclick="changeMenu(this);" class="" id="brand_show"><a target="main-frame" href="<?php echo $this->_url('admin/brand/categorieslist');?>">品牌列表</a></li>
				<li onclick="changeMenu(this);" class="" id="goods_categories"><a target="main-frame" href="<?php echo $this->_url('admin/goods/categorieslist');?>">商品分类列表</a></li>
				<li onclick="changeMenu(this);" class="" id="attr_manager"><a target="main-frame" href="<?php echo $this->_url('admin/goods/attributelist');?>">商品属性管理</a></li>
			</ul>
       <?php }?>

	   <?php if ($id == 'promotions'){?><!-- 网站 -->
			<ul class="submenu" id="index">
	        	<li id="separator" class="separator"></li>
				<li id="news_list" class="active" onclick="changeMenu(this);"><a href="<?php echo $this->_url('admin/article/index');?>" target="main-frame">新闻列表</a></li>
				<li onclick="changeMenu(this);" class="" id="brand_show"><a target="main-frame" href="<?php echo $this->_url('admin/article/categorieslist');?>">新闻分类</a></li>
				<li onclick="changeMenu(this);" class="" id="shop_article_cat"><a target="main-frame" href="<?php echo $this->_url('admin/shoparticle/categorieslist');?>">店铺文章分类</a></li>
				<li onclick="changeMenu(this);" class="" id="shop_article"><a target="main-frame" href="<?php echo $this->_url('admin/shoparticle/index');?>">店铺文章</a></li>
		        <li onclick="changeMenu(this);" class="" id="error_set"><a target="main-frame" href="<?php echo $this->_url('admin/remind/index');?>">站内消息管理</a></li>								
                <li onclick="changeMenu(this);" class="" id="sensi_words"><a target="main-frame" href="<?php echo $this->_url('admin/word/index');?>">敏感词管理</a></li>			
			<ul>
	   <?php }?>
	   
    </div>
</div>
<script language="JavaScript">
<!--
function showlink(ltype) {
	var eli = document.getElementsByTagName("li");
	if(ltype!="0"){
        for(i=1;i<eli.length;i++){
    		if(eli[i].className.indexOf('active')>=0){
    			eli[i].className = '';
    		}
    	}
        document.getElementById(''+ltype).className="active";
	}else{
		for(var i=0; i<eli.length; i++) {
			if(eli[i].className=='active') {
				parent.frames[2].location = eli[i].children[0].href;
				parent.document.getElementById('frame-body').cols = '180,*';
				break;
			}
		}
	}
}

document.getElementById('separator').onclick = function (){
	if(document.body.className == 'folden') {
		document.body.className = '';
		parent.document.getElementById('frame-body').cols = '180,*';
	} else {
		document.body.className = 'folden';
		parent.document.getElementById('frame-body').cols = '50,*';
	}
}
//-->
</script>
</body>
</html>